<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>v-for</title>
<script type="text/javascript" src="node_modules/_vue@2.6.10@vue/dist/vue.js"></script>
</head>
<body>
<!-- 	<div id="div">
	<div v-for="src in images">
		<img :src=src >
	</div>
</div>
    <script type="text/javascript">
    	var div = new Vue({
    		el:'#div',
    		data(){
    			return{
    				images:['img/1.jpg','img/2.jpg','img/3.jpg','img/4.jpg','img/5.jpg','img/6.jpg','img/7.jpg','img/8.jpg','img/9.jpg']
    			}
    		}
    	});
    </script> -->

    <script type="text/javascript">
    	myname="hello";
    	function func() {
    		alert(myName);
    		var myName="world";
    		alert(myName);
    	}
    	func();
    </script>
</body>
</html>